﻿//12. Write a program that creates an array containing all letters from the alphabet (A-Z).
//Read a word from the console and print the index of each of its letters in the array.


using System;

class IndexOfWordLetters
{
    static void Main()
    {
        string word = Console.ReadLine();
        char[] alphabet = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j','k', 'l', 'm', 'n',
                              'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
        for (int i = 0; i < word.Length; i++)
        {
            int indexI = Array.BinarySearch(alphabet, word[i], StringComparer.OrdinalIgnoreCase);
            Console.WriteLine(indexI);
        }
    }
}
